package com.sugar.queryinfo.module.business.controller.admin.userauth.vo;

import com.sugar.queryinfo.framework.common.validation.Mobile;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 用户授权维护新增/修改 Request VO")
@Data
public class UserAuthSaveReqVO {

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotNull(message = "客户标识不能为空")
    private Long userId;

    @Schema(description = "姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "姓名不能为空")
    private String name;

    @Schema(description = "身份证", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "身份证不能为空")
    private String idCard;

    @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED)
    @Mobile
    private String mobile;

    /**
     * 是否授权（0不授权 1已授权）
     */
    @NotNull(message = "是否授权不能为空")
    private Boolean isAuth;
}